Simplify some drag dest internals
authorMatthias Clasen <mclasen@redhat.com>
Sun, 5 Jan 2020 20:54:46 +0000 (15:54 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 8 Jan 2020 23:48:20 +0000 (18:48 -0500)
commitcb26cd7391888e31a75c52055f41531b97469e2f
tree5b263fe0dadb60f0068227668043f00c186b6a3e
parent1a3eeb123348ddbd7ca8dfbbef76c35fcc21073f
Simplify some drag dest internals

Change things around to make the default handler
of GtkDropTarget::drag-motion implement the default
handling. Always emit ::drag-motion and ::drag-leave,
and always arm the drop target.

This makes the GTK_DEST_DEFAULT_MOTION flag and
the ::track-motion property unnecessary.

Drop targets that are purely after track-motion
handling for ui switching purposes, such as
GtkStackSwitcher, will have to undo the automatic
arming in a notify::armed handler.
gtk/gtkdnd.c
gtk/gtkdragdest.c